<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<form id="pagerForm" method="post" action="customer_pager_List?guid=<%=new Date().getTime() %>" namespace="/">
	<input type="hidden" name="pager.pageNum" value="1" />
	<input type="hidden" name="pager.numPerPage" value="${pager.numPerPage}" />
	<input type="hidden" name="pager.orderField" value="${pager.orderField}" />
	<input type="hidden" name="pager.orderDirection" value="${pager.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" class="pageForm required-validate" action="customer_simpleFind_List" namespace="/" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>客户号：</label>
				<input type="text" name="customer.customerId"  class="required number"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="<%=basePath%>customer/seniorQuery.jsp" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent" id="content">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>customer/customerAdd.jsp" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="customer_del_List.action?customer.customerId={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>customer_getDetail_Alter.action?customerId={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="#" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="50" align="center" orderField="customerId" class="asc">客户号</th>
				<th width="70" align="center" orderField="cname" class="desc">姓名</th>
				<th width="50" align="center" >性别</th>
				<th width="150" align="center" >身份证</th>
				<th width="50" align="center" >年龄</th>
				<th width="250" align="center" >家庭住址</th>
				<th width="100" align="center" >详细信息</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="cust" value="cinfoList">
				<tr target="sid_user" rel="<s:property value="#cust.customerId"/>">
					<td align="center"><s:property value="#cust.customerId"/></td>
					<td align="center"><s:property value="#cust.cname"/></td>
					<td align="center"><s:property value="#cust.cgender"/></td>
					<td align="center"><s:property value="#cust.cardId"/></td>
					<td align="center"><s:property value="#cust.cage"/></td>
					<td align="center"><s:property value="#cust.caddr"/></td>
					<td align="center">
						<a href="<%=basePath %>customer_getDetail_Detail.action?customerId=<s:property value="#cust.customerId"/>" 
							width="800" height="480" target="dialog" rel="page2">详细信息</a>
					</td>
				</tr>
			</s:iterator>
			
		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" 
				onchange="javascript:dwzPageBreak({data:{numPerPage:this.value}})">
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共<s:property value="pager.totalCount"/>条</span>
		</div>
		<s:if test="pager.numPerPage!=''">
			<script type="text/javascript">
			setNumPerPage({numPerPage:<s:property value="pager.numPerPage"/>});
			</script>
		</s:if>
		<div class="pagination" targetType="navTab" 
			totalCount=<s:property value="pager.totalCount"/> 
			numPerPage="<s:property value="pager.numPerPage"/>" 
			pageNumShown="<s:property value="pager.pageNumShown"/>" 
			currentPage="<s:property value="pager.currentPage"/>">
		</div>

	</div>
</div>
